//
//  CustomAlertView.h
//  Tool
//
//  Created by flychi on 15/12/17.
//  Copyright © 2015年 Mike. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AlertView : UIView

//完全自定义（需自己实现hide）
+ (void)alertWithTitle:(NSString *)title
                  icon:(UIImage *)icon
               message:(NSString *)message
            clickBlock:(void (^)(NSInteger index))clickBlock
          buttonTitles:(NSString *)buttonTitles, ... NS_REQUIRES_NIL_TERMINATION;

//完全自定义-无icon（需自己实现hide）
+ (void)alertWithTitle:(NSString *)title
               message:(NSString *)message
            clickBlock:(void (^)(NSInteger index))clickBlock
          buttonTitles:(NSString *)buttonTitles, ... NS_REQUIRES_NIL_TERMINATION;

//双按钮-左取消，右功能
+ (void)alertWithTitle:(NSString *)title
                  icon:(UIImage *)icon
               message:(NSString *)message
           cancelTitle:(NSString *)cancelTitle
           cancelBlock:(void (^)())cancelblock
          confirmTitle:(NSString *)confirmTitle
          confrimBlock:(void (^)())confirmBlock;

//双按钮-左取消，右功能
+ (void)alertWithTitle:(NSString *)title
               message:(NSString *)message
           cancelTitle:(NSString *)cancelTitle
           cancelBlock:(void (^)())cancelblock
          confirmTitle:(NSString *)confirmTitle
          confrimBlock:(void (^)())confirmBlock;

//单按钮
+ (void)alertWithTitle:(NSString *)title
               message:(NSString *)message
           buttonTitle:(NSString *)buttonTitle
          confrimBlock:(void (^)())confirmBlock;

//单按钮
+ (void)alertWithTitle:(NSString *)title
               message:(NSString *)message
           buttonTitle:(NSString *)buttonTitle;

//无按钮
+ (void)alertWithTitle:(NSString *)title
               message:(NSString *)message;

@end